package com.scau.dto;

import com.scau.pojo.Goods;
import com.scau.pojo.OrderItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Siaoja
 */

public class OrderInfo {
    private Goods goods;
    private OrderItem orderItem;

    public OrderInfo(Goods goods, OrderItem orderItem) {
        this.goods = goods;
        this.orderItem = orderItem;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public OrderItem getOrderItem() {
        return orderItem;
    }

    public void setOrderItem(OrderItem orderItem) {
        this.orderItem = orderItem;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "goods=" + goods +
                ", orderItem=" + orderItem +
                '}';
    }
}
